setAlarmClock
open fun setAlarmClock(@NonNull alarmManager: @NonNull AlarmManager, triggerTime: Long, @NonNull showIntent: @NonNull PendingIntent, @NonNull operation: @NonNull PendingIntent)(source)
Schedule an alarm that represents an alarm clock. The system may choose to display information about this alarm to the user.
This method is like setExact, but implies RTC_WAKEUP.
Parameters
alarmManager
AlarmManager instance used to set the alarm
triggerTime
time at which the underlying alarm is triggered in wall time milliseconds since the epoch
showIntent
an intent that can be used to show or edit details of the alarm clock.
operation
Action to perform when the alarm goes off; typically comes from IntentSender.getBroadcast().